<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
<title>购买产品消费结算</title>
<meta name="decorator" content="default" />
<style type="text/css">
</style>
<script type="text/javascript">
$().ready(function(){
disableExitMenu();
});
</script>
</head>
<body>
	<div data-role="navbar">
		<ul>
			<c:if test="${member.menuState.hasNewCards}">
				<li><a href="${ctx}/cash/member/shoppingDetails">新开卡消费结算</a></li>
			</c:if>
			<c:if test="${member.menuState.hasRecharges}">
				<li><a href="${ctx}/cash/member/shoppingDetails/recharge">卡充值消费结算</a></li>
			</c:if>
			<c:if test="${member.menuState.hasProducts}">
				<li><a href="${ctx}/cash/member/shoppingDetails/product">购买产品消费结算</a></li>
			</c:if>
			<c:if test="${member.menuState.hasCares}">
				<li><a href="${ctx}/cash/member/shoppingDetails/docare">手工护理消费结算</a></li>
			</c:if>
			<c:if test="${member.menuState.hasGifts}">
				<li><a class="ui-btn-active"  href="#">赠品</a></li>
			</c:if>
		</ul>
	</div>
	<div class="container">
	<h2 style="text-align: center;">赠品无需确认结算方式</h2>
	<div class="icon-buttons">
		<a href="${ctx}/cash/member/detail?id=${member.customer.id}"
			data-inline="true" data-role="button" data-icon="back" data-iconpos="notext">  返回</a> <a data-role="button"
			data-inline="true" data-icon="check" data-iconpos="notext"
			href="${ctx}/cash/member/shoppingPayment?id=${member.customer.id}">结算</a>
	</div>
	<tags:message content="${message}" />
	<div>
		<table id="products" data-role="table" class="ui-responsive table-stroke">
			<thead>
				<tr>
					<th colspan="6" style="text-align:center;">赠送产品</th>
				</tr>
				<tr>
					<th>产品名称</th>
					<th>数量</th>
					<th>零售单价</th>
					<th>本次收费</th>
					<th>合计</th>
					<th>服务专员</th>
				</tr>
			</thead>
			<tbody>
				<c:forEach items="${member.giftCart.systemProducts}"
					var="cart">
					<tr>
						<td>${cart.storeProduct.product.name}</td>
						<td>${cart.count}</td>
						<td>${cart.storeProduct.product.retail_price}</td>
						<td>0</td>
						<td>0</td>
						<td>${cart.employee.name}</td>
					</tr>
				</c:forEach>
				<c:forEach items="${member.giftCart.storeProducts}"
					var="cart">
					<tr>
						<td>${cart.storeProduct.storeSelfProduct.name}</td>
						<td>${cart.count}</td>
						<td>${cart.storeProduct.storeSelfProduct.retail_price}</td>
						<td>0</td>
						<td>0</td>
						<td>${cart.employee.name}</td>
					</tr>
				</c:forEach>
			</tbody>
		</table>
	</div>
	</div>
</body>
</html>
